$(document).ready(
    function()
    {
        $('#button-upload-img').uploadify(
        {
        	buttonText:'Select Image Upload',
        	swf :'/appweb/application/layouts/admin/upload/uploadify.swf',
            uploader: '/appweb/admin/product/uploadfileimg',
            fileTypeDesc:'Image file',
            fileTypeExts:'*.png;*.jpg;*.gif',
            fileObjName:'file',
/*            onDialogOpen: function()
            {
            	$('#button-upload-img').uploadify(
            		'settings','formData',{'product': $('select#upload-img-product option:selected').val(),'video':$('select#upload-img-video option:selected').val()}
            	);
            },*/
            onUploadSuccess:function(file,data,response)
            {
            	alert(data);
            }
        }
        );
    }
);